package com.uetoken.cn.adapter.model;

import com.uetoken.cn.bean.PurseListBean;

import java.math.BigDecimal;
import java.util.List;

public class AssetsMainModel {

    public static final int PARENT_ITEM = 0;//父布局
    public static final int CHILD_ITEM = 1;//子布局
    private int type;// 显示类型
    private boolean isExpand;// 是否展开

    private String imageResource;
    private CharSequence titleText;
    private CharSequence detailText;
    private List<AssetsDetailModel> mAssetsDetailModelList;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isExpand() {
        return isExpand;
    }

    public void setExpand(boolean expand) {
        isExpand = expand;
    }

    public String getImageResource() {
        return imageResource;
    }

    public void setImageResource(String imageResource) {
        this.imageResource = imageResource;
    }

    public CharSequence getTitleText() {
        return titleText;
    }

    public void setTitleText(CharSequence titleText) {
        this.titleText = titleText;
    }

    public CharSequence getDetailText() {
        return detailText;
    }

    public void setDetailText(CharSequence detailText) {
        this.detailText = detailText;
    }

    public List<AssetsDetailModel> getmAssetsDetailModelList() {
        return mAssetsDetailModelList;
    }

    public void setmAssetsDetailModelList(List<AssetsDetailModel> mAssetsDetailModelList) {
        this.mAssetsDetailModelList = mAssetsDetailModelList;
    }

    public class AssetsDetailModel {
        /**
         * id : 1
         * purseid : 2221094
         * pursename : DOS
         * pursepic : http://image.51yougu.cn/ue/szdb.png
         * balance : 98989.0
         * freeze : 1000.0
         * purseunit : 8
         * purseunitname : DOS
         * pursetypeid : 2
         * pursetype : 54
         * pursetypename : DV数字代币
         * pursetypepic : http://image.51yougu.cn/ue/szdb.png
         * operation : 3
         * balanceformat : 98989.00000000
         * transactionamount : null
         * price (string, optional): 代币价格 (汇率)
         * flag (string, optional): 涨跌(1=涨，0=跌)
         */
        private int id;
        private CharSequence subitemText;
        private String amount;
        private String subitemAmount;
        private String balanceformat;
        private String transactionamount;
        private int pursetypeid;
        private String price;
        private String flag;
        private PurseListBean.DataBean mDataBean;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public CharSequence getSubitemText() {
            return subitemText;
        }

        public void setSubitemText(CharSequence subitemText) {
            this.subitemText = subitemText;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getSubitemAmount() {
            return subitemAmount;
        }

        public void setSubitemAmount(String subitemAmount) {
            this.subitemAmount = subitemAmount;
        }

        public String getBalanceformat() {
            return balanceformat;
        }

        public void setBalanceformat(String balanceformat) {
            this.balanceformat = balanceformat;
        }

        public String getTransactionamount() {
            return transactionamount;
        }

        public void setTransactionamount(String transactionamount) {
            this.transactionamount = transactionamount;
        }

        public int getPursetypeid() {
            return pursetypeid;
        }

        public void setPursetypeid(int pursetypeid) {
            this.pursetypeid = pursetypeid;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }

        public PurseListBean.DataBean getDataBean() {
            return mDataBean;
        }

        public void setDataBean(PurseListBean.DataBean dataBean) {
            mDataBean = dataBean;
        }
    }
}
